package com.zjh.core.shiro;

import com.zjh.admin.sys.model.UserEntity;
import org.apache.shiro.SecurityUtils;


/**
 * @author OZY
 * @Description: shiro 认证信息操作工具类
 * @date 2016/3/06 11:48
 */
public class ShiroAuthenticationManager {

    /**
     * 获取用户
     *
     * @return
     */
    public static UserEntity getUserEntity() {
        return (UserEntity) SecurityUtils.getSubject().getPrincipal();
    }

}
